
public class PeopleTask implements Runnable{
    private Cave cave;

    public PeopleTask(Cave cave) {
        this.cave = cave;
    }
    @Override
    public void run() {
        // 10个人来执行
        cave.go();
    }
}
